package day_240429.exercise;

public class Test {
    public static void main(String[] args) {
        Person person = new Person("小高");
        Cat cat = new Cat("小白");
        person.adopt(cat);

        Dog dog = new Dog("牧羊犬");
        person.adopt(dog);

        Pig pig = new Pig("八戒");
        person.adopt(pig);

        Rabbit rabbit = new Rabbit("小灰");
        person.adopt(rabbit);
    }
}